home *** CD-ROM | disk | FTP | other *** search
/ Carousel / CAROUSEL.cdr / mactosh / util / simulare.sit / Simula 4.07 Reference / card_40553.txt < prev    next >
Text File  |  1989-05-02  |  2KB  |  89 lines

  1. -- card: 40553 from stack: in.07 Reference
  2. -- bmap block id: 0
  3. -- flags: 0000
  4. -- background id: 13647
  5. -- name: 
  6.  
  7.  
  8. -- part 1 (button)
  9. -- low flags: 00
  10. -- high flags: A004
  11. -- rect: left=399 top=291 right=312 bottom=460
  12. -- title width / last selected line: 0
  13. -- icon id / first selected line: 0 / 0
  14. -- text alignment: 1
  15. -- font id: 0
  16. -- text size: 12
  17. -- style flags: 0
  18. -- line height: 16
  19. -- part name: Modes
  20. ----- HyperTalk script -----
  21. on mouseUp
  22.   go to card id 40763
  23. end mouseUp
  24.  
  25.  
  26.  
  27.  
  28. -- part 2 (field)
  29. -- low flags: 00
  30. -- high flags: 0002
  31. -- rect: left=13 top=176 right=297 bottom=138
  32. -- title width / last selected line: 0
  33. -- icon id / first selected line: 0 / 0
  34. -- text alignment: 0
  35. -- font id: 3
  36. -- text size: 10
  37. -- style flags: 0
  38. -- line height: 13
  39. -- part name: 
  40.  
  41.  
  42. -- part 3 (field)
  43. -- low flags: 00
  44. -- high flags: 0002
  45. -- rect: left=137 top=176 right=297 bottom=395
  46. -- title width / last selected line: 0
  47. -- icon id / first selected line: 0 / 0
  48. -- text alignment: 0
  49. -- font id: 3
  50. -- text size: 10
  51. -- style flags: 0
  52. -- line height: 13
  53. -- part name: 
  54.  
  55.  
  56. -- part contents for background part 2
  57. ----- text -----
  58. Procedures
  59.  
  60. -- part contents for background part 1
  61. ----- text -----
  62. Procedures can be defined both in classes as operations, or messages, and in blocks, or inside other procedures. In both cases they have the semantics of abstracting an action. Procedures that return a value are sometimes referred to as Functions (rather than plain procedures) to make the distinction clear. Functions return the (last) value that has been assigned to it in its body. Function names are in effect write-only variables.
  63. Parameter types are checked according to the following rules:
  64.  
  65.  
  66.  
  67. -- part contents for card part 2
  68. ----- text -----
  69. Numeric
  70. Boolean, character, text
  71. ref(...)
  72.  
  73. array
  74.  
  75. procedure
  76.  
  77. label, switch
  78.  
  79. -- part contents for card part 3
  80. ----- text -----
  81. the actual parameter is converted as needed.
  82. the actual parameter must have the same type.
  83. the qualification of the actual parameter must be
  84.     the same or a sub-class of the formal parameter.
  85. the actual parameter must have exactly the same
  86.     type or qualification.
  87. parameters of the formal procedure are not 
  88.     declared, they are checked during run-time.
  89. the actual parameter must have same type.